package com.fzl.spring_chatroom.model.mapper;

import com.fzl.spring_chatroom.model.dao.Friend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendMapper {
    List<Friend> selectFriendList(Integer userId);

    int isFriend(Integer userId, Integer friendId);

    int addFriend(@Param("userId") Integer userId, @Param("friendId") Integer friendId);
}
